﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartMD.DataModel.Entity
{
    public class EntityUsageMapping : BusinessEntity
    {
        private string _id;
        private string _recordId;
        private string _entityId;

        public override void setValue(string key, Object value)
        {
            if (value is System.DBNull)
                return;
            switch (key.ToLower())
            {
                case "id":
                    this.Id = (string)value;
                    break;
                case "recordid":
                    this.RecordId = (string)value;
                    break;
                case "entityid":
                    this.EntityId = (string)value;
                    break;
            }
        }

        public string RecordId
        {
            get
            {
                return _recordId;
            }
            set
            {
                _recordId = value;
                OnPropertyChanged(() => RecordId);
            }
        }

        public string EntityId
        {
            get
            {
                return _entityId;
            }
            set
            {
                _entityId = value;
                OnPropertyChanged(() => EntityId);
            }
        }
    }
}
